from lxml import etree
from selenium import webdriver

driver = webdriver.Edge()
driver.maximize_window()

driver.get('https://pvp.qq.com/web201605/herolist.shtml')

driver.implicitly_wait(3)

html = driver.page_source

tree = etree.HTML(html)

hero_list = tree.xpath('/html/body/div[3]/div/div/div[2]/div[2]/ul/li[1]')
print(hero_list)
